﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ConnectorStatesOperations.cs" company="dimamartovoi">
//   Apache License
//   Version 2.0, January 2004
//   http://www.apache.org/licenses
// </copyright>
// <summary>
//   The connector states operations.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

using System.Collections.Generic;
using System.Linq;

namespace ActorModel.Evolution.Operations
{
    /// <summary>
    ///     The connector states operations.
    /// </summary>
    public static class ConnectorStatesOperations
    {
        #region Public Methods and Operators

        /// <summary>
        /// The extract state.
        /// </summary>
        /// <param name="connectorsStates">
        /// The connectors states.
        /// </param>
        /// <param name="index">
        /// The index.
        /// </param>
        /// <returns>
        /// The <see cref="string"/>.
        /// </returns>
        public static string ExtractState(IEnumerable<string> connectorsStates, int index)
        {
            return connectorsStates.ElementAt(index);
        }

        #endregion
    }
}